package com.youbo.common.constant;

import lombok.Getter;

/**
 * @author  youbo
 * @date  2021/9/30 11:30
 * @version 1.0
 */
public class ProductConstant {
    @Getter
    public enum AttrEnum {

        ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性"),
        DEFAULT_IMG(1, "默认图片"), NOT_DEFAULT_IMG(0, "非默认图片"),
        SUCCESS_FEIGN(0, "远程服务调用成功"), ERROR_FEIGN(1, "远程服务调用失败");

        private int code;
        private String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
    @Getter
    public enum StatusEnum{
        NEW_SPU(0,"新建"),
        UP_SPU(1,"商品上架"),
        DOWN_SPU(2,"商品下架");
        private int code;
        private String msg;

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }
}
